import request from '@/utils/request'

/*** 政策级别信息*/
export function policyLevelInfo(data) {
  return request({
    url: 'http://localhost:8080/bt/policy/policyLevelInfo',
    method: 'post',
    data: data
  })
}


/** 新增政策 */
export function addSave(additems) {
  return request({
    url: "http://localhost:8080/bt/policy/addSavaPolicy",
    method: "post",
    data: additems
  })
}

/** 发布政策 */
export function updatePolicy(additems) {
  return request({
    url: "http://localhost:8080/bt/policy/addSubmitPolicy",
    method: "post",
    data: additems
  })
}

/** 政策列表信息 */
export function listPolicyPageInfo(updateitems) {
  return request({
    url: "http://localhost:8080/bt/policy/pageWaitSubmitPolicy",
    method: "post",
    data: updateitems
  })
}

// 获取政策详细信息
export function getPolicyInfoData(id) {
  return request({
    url: "http://localhost:8080/bt/policy/fatchWaitSubmitPolicy/" + id,
    method: "get",
  })
}

//修改政策信息
export function updatePolicyInfo(updateData) {
  return request({
    url: "http://localhost:8080/bt/policy/updatePolicy",
    method: "post",
    data: updateData
  })
}

//删除政策信息
export function detelePolicy(data) {
  return request({
    url: "http://localhost:8080/bt/policy/deletePolicy",
    method: "get",
    params: data
  })
}
